package com.mls.fivedistrict.server.impl;

import com.mls.fivedistrict.dao.TaskCategoryMapper;
import com.mls.fivedistrict.pojo.TaskCategory;
import com.mls.fivedistrict.pojo.TaskCategoryExample;
import com.mls.fivedistrict.server.TaskCategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by lixixi on 2018/4/3.
 */
@Service("taskCategoryService")
public class TaskCategoryServiceImpl implements TaskCategoryService {
    @Resource(name = "taskCategoryMapper")
    TaskCategoryMapper taskCategoryMapper;

    @Override
    public List<TaskCategory> getTaskCategoryList() {
        TaskCategoryExample taskCategoryExample=new TaskCategoryExample();
        return taskCategoryMapper.selectByExample(taskCategoryExample);
    }
}
